import Vue from 'vue'
import {
  Button,
  Form,
  FormItem,
  Input,
  Message,
  Container,
  Aside,
  Header,
  Main,
  Menu,
  MenuItem,
  MenuItemGroup,
  Submenu,
  Dialog,
  Breadcrumb,
  BreadcrumbItem,
  Col,
  Row,
  Divider,
  Table,
  TableColumn,
  Card,
  Pagination,
  Select,
  Option,
  DatePicker,
  Upload,
  Popconfirm,
  Radio,
  Tag
} from 'element-ui'

Vue.prototype.$message = Message

// 按需加载对应的组件
;[
  Button,
  Form,
  FormItem,
  Input,
  Container,
  Aside,
  Header,
  Main,
  Menu,
  MenuItem,
  MenuItemGroup,
  Submenu,
  Dialog,
  Row,
  Col,
  Breadcrumb,
  BreadcrumbItem,
  Divider,
  Table,
  TableColumn,
  Card,
  Pagination,
  Select,
  Option,
  DatePicker,
  Upload,
  Popconfirm,
  Radio,
  Tag
].forEach(cmp => Vue.use(cmp))
